package com.weixin.paleituo.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.weixin.paleituo.R;
import com.weixin.paleituo.base.BaseFragment;
import com.weixin.paleituo.bean.TakeBean;
import com.weixin.paleituo.contans.Contans;
import com.weixin.paleituo.util.UIUtils;
import com.weixin.paleituo.view.ItemBuyHouseStepView;

import butterknife.BindView;
import butterknife.Unbinder;

/**
 * Author yichao
 * Time  2017/12/19 14:40
 * Dest  接房
 */

public class AcceptHouseFragment extends BaseFragment {

    @BindView(R.id.itembuyhousestepview_accepthousetime_fragment_accepet_house)
    ItemBuyHouseStepView mItembuyhousestepviewAccepthousetimeFragmentAccepetHouse;
    Unbinder unbinder;
    private View mAccepetHouseView;

    @Override
    public View initView(Context context) {

        mAccepetHouseView = UIUtils.inflate(context, R.layout.fragment_accepet_house);
        return mAccepetHouseView;
    }

    public static BaseFragment newInstance(TakeBean takeBean) {
        AcceptHouseFragment acceptHouseFragment = new AcceptHouseFragment();
        Bundle bundle = new Bundle();
        bundle.putParcelable(Contans.INTENT_DATA, takeBean);
        acceptHouseFragment.setArguments(bundle);

        return acceptHouseFragment;
    }

    @Override
    protected void initData() {
        super.initData();
        Bundle arguments = getArguments();
        TakeBean takeBean = arguments.getParcelable(Contans.INTENT_DATA);
        if (takeBean != null) {
            mItembuyhousestepviewAccepthousetimeFragmentAccepetHouse.setTvContent(takeBean.getTakeTime()+"");

        }
    }


}
